package java1909;

import java.util.Scanner;

public class Text19092303 {
	public static void main(String[] args) {
		Scanner scanner = new  Scanner(System.in);
	int a = scanner.nextInt();
	int b = a*(1001);
	System.out.println(b/(7*11*13));
	}
	
}
